#ifndef __HAL_GPS_UV_H_
#define __HAL_GPS_UV_H_
#include "pal/lane_control.h"
#include "minmea.h"

typedef struct
{
    HEAD_T
    uint8_t gps_timeBcd[6];
    uint8_t gps_type;
    uint8_t gps_gngga_data[MINMEA_MAX_LENGTH];
    uint8_t gps_gnrmc_data[MINMEA_MAX_LENGTH];
    CRC_T
} __attribute__((__packed__)) gps_t;

void gps_init();
void getQxAddrInfoAndConnect(uv_timer_t *handle);
gps_t getLastGps();

#endif